/**
 * Write a description of class Sys here.
 * 
 * @author (your name)
 * @version (a version number or a date)
 */
import java.util.Scanner;
public class Sys {
	static String str2 = "";
 	Scanner scan = new Scanner(System.in);
	public Sys() {

	}

	// takes an int for seconds and delays the system by that long
	public static void delay(double secs) {
		secs = secs * 1000;
		try {
			Thread.currentThread().sleep((int) secs);
		} catch (InterruptedException ie) {
		}
	}

	public static String split1(String str) {
		str2 = str;
		Bad: for (int c = 0; c < str.length() - 1; c++) {
			if (str.charAt(c) == ' ') {
				str2 = str.substring(0, c);
				break Bad;
			}
		}
		return str2;
	}

	public static String split2(String str) {
		Bad: for (int c = 0; c < str.length() - 1; c++) {
			if (str.charAt(c) == ' ') {
				str2 = str.substring(c + 1);
				break Bad;
			}
		}
		return str2;
	}

	public static void sp(String input) {
		for (int c = 0; c < input.length(); c++) {
			if(input.charAt(c) != '\\')
			{
				System.out.print(input.charAt(c));
				delay(.05);
			}
			else
			{
				switch(input.charAt(c+1))
				{
						case 't':
							System.out.print("     ");
						break;
						case 'n':
							System.out.println();
							break;
						case '\\':
								System.out.print("\\");
								delay(.05);
								break;
						case '"':
								System.out.print("\"");
								delay(.05);
								break;
						default:
							break;
				}
				c++;
			}
		}
		System.out.println();
	}
	public static void supersp(String input) {
		for (int c = 0; c < input.length(); c++) {
			if(input.charAt(c) != '\\')
			{
				System.out.print(input.charAt(c));
				delay(.15);
			}
			else
			{
				switch(input.charAt(c))
				{
					case 't':
						System.out.print("     ");
						break;
					case 'n':
						System.out.println();
						break;
					case '\\':
						System.out.print("\\");
						delay(.15);
						break;
					case '"':
						System.out.print("\"");
						delay(.15);
						break;
					default:
						break;
				}
				c++;
			}
		}
		System.out.println();
	}
}
